package com.srit.forecast.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import com.srit.forecast.constant.Constant;

public class ListAndFormInterceptor extends HandlerInterceptorAdapter {

	/**
	 * This implementation is empty.
	 */
	public void postHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler,
			ModelAndView modelAndView) throws Exception {
		request.setAttribute(Constant.PAGE_TYPE, Constant.PAGE_TYPE_ALL);
		System.out.println("ControllerInterceptor.postHandle()");
	}

}
